lib/repo-finder-avahi: Fix memory corruption of a GVariantIter
authorPhilip Withnall <withnall@endlessm.com>
Mon, 23 Oct 2017 15:32:49 +0000 (16:32 +0100)
committerAtomic Bot <atomic-devel@projectatomic.io>
Tue, 24 Oct 2017 12:55:24 +0000 (12:55 +0000)
commit90680e1b29019c5b1b1210b4692877e2f3af1054
tree920564a0d38d90e50d970deb1422bb5a978a2c56
parented15723cd1688a7f2c003c7cbc95be202166c33d
lib/repo-finder-avahi: Fix memory corruption of a GVariantIter

A GVariantIter* was being passed to a GVariant format string varargs,
rather than a GVariantIter**. This resulted in memory corruption.

So we can continue to reuse ref_map throughout the function, make it a
GVariantIter* rather than a stack-allocated GVariantIter.

Signed-off-by: Philip Withnall <withnall@endlessm.com>
Closes: #1301
Approved by: cgwalters
src/libostree/ostree-repo-finder-avahi.c